package com.wanmait.baohan.service.Impl;

import com.wanmait.baohan.mapper.TravelReportMapper;
import com.wanmait.baohan.pojo.TravelReport;
import com.wanmait.baohan.service.TravelReportServce;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TravelReportServceImpl implements TravelReportServce {
    @Resource
    private TravelReportMapper travelReportMapper;
    @Override
    public void addReport(TravelReport travelReport) {
        travelReportMapper.insertSelective(travelReport);
    }


    @Override
    public TravelReport selectByPrimaryKeyById(Integer id) {
        TravelReport travelReport = travelReportMapper.selectByPrimaryKeyById(id);
        return travelReport;
    }
}
